﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SSE657.BahMap.DataAccess;
using SSE657.BahMap.Common;

namespace SSE657.BahMap.Business
{
    public class SchoolsManager
    {
        ISchoolDataConnector _connector;

        public SchoolsManager (ISchoolDataConnector dataConnector)
        {
            this._connector = dataConnector;
        }

        public IEnumerable<SchoolData> GetSchools(int zipcode)
        {
            return _connector.GetSchools(zipcode);
        }

        public IEnumerable<SchoolData> GetSchools(string mha)
        {
            return _connector.GetSchools(mha);
        }

        // what projected responsibilities justify this class's existence instead of just using ISchoolDataConnector directly?
        // Answer: schools within specified range of specified ZIP.  Other complex calculations involving tuition and BAH rates, maybe?
    }
}
